﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>service</Title>
      <Author>Bruce</Author>
      <Description>Code snippet for an automatically implemented Service</Description>
      <HelpUrl />
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Keywords />
      <Shortcut>service</Shortcut>
    </Header>
    <Snippet>
      <References />
      <Imports />
      <Declarations>
        <Literal Editable="true">
          <ID>type</ID>
          <Type />
          <ToolTip>service type</ToolTip>
          <Default>IMemberService</Default>
          <Function />
        </Literal>
        <Literal Editable="true">
          <ID>name</ID>
          <Type />
          <ToolTip>service name</ToolTip>
          <Default>MyService</Default>
          <Function />
        </Literal>
      </Declarations>
      <Code Language="csharp" Kind="" Delimiter="$"><![CDATA[	private $type$ _$name$;
	public $type$ $name$ 
	{ 
		get
		{
			if( _$name$ == null )
			{
				_$name$ = Digger.Dig<$type$>();
			}
			return _$name$;
		} 
	}$end$]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>